<template>
  <ych-modal
    :fullscreen="false"
    :title="title"
    :visible="visible"
    :destroyOnClose="true"
    size="middle"
    @ok="handleOk"
    @cancel="handleCancel"
    :cancelText="$t('m.common.button.close')">

    <FilePreviewFormModal ref="form" v-on="$listeners" v-bind="$attrs" @refreshParent="refreshParent"/>
  </ych-modal>
</template>

<script>

  import {FormDialogMixin} from '@/mixins/FormDialogMixin'
  import FilePreviewFormModal from './FilePreviewFormModal'

  export default {
    name: 'FilePreviewFormDialog',
    mixins: [FormDialogMixin],
    components: {
      FilePreviewFormModal
    },
    data() {
      return {
        title: this.$t('m.common.label.operate'),
      }
    }
  }
</script>
